package com.anche.cywebnew.Pojo.systemManager;

import com.anche.cywebnew.Utils.annotation.DV;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
import java.util.Date;

public class SysOrganization {
    @DV(description = "机构名称", maxLength = 64, nullable = false)
    @XmlElement
    private String name;

    @DV(description = "查验区序号", minLength = 12, maxLength = 12, nullable = false)
    @XmlElement
    private String cyqxh;

    @DV(description = "查验机构简称", maxLength = 100)
    @XmlElement
    private String cyjgjc;

    @DV(description = "授权码", maxLength = 100, nullable = false)
    @XmlElement
    private String sqm;

    @DV(description = "站点服务器地址", maxLength = 50, nullable = false)
    @XmlElement
    private String zdfwqdz;

    @DV(description = "录像下载配置", maxLength = 1, nullable = false)
    @XmlElement
    private String lxxzpz;

    @DV(description = "机构地址", maxLength = 100, nullable = true)
    @XmlElement
    private String address;

    @DV(description = "机构类型", maxLength = 1, nullable = false)
    @XmlElement
    private String organtype;

    @DV(description = "上级机构", maxLength = 12, nullable = true)
    @XmlElement
    private String porgan;

    @DV(description = "图标样式", maxLength = 32, nullable = true)
    @XmlElement
    private String icon;

    @XmlElement
    private Integer seq;

    @DV(description = "机构经度", nullable = true, regexExpression = "(([1-9]{1}\\d*)|([0]{1}))\\.(\\d){6}$")
    @XmlElement
    private String lng;

    @DV(description = "机构纬度", nullable = true, regexExpression = "(([1-9]{1}\\d*)|([0]{1}))\\.(\\d){6}$")
    @XmlElement
    private String lat;

    @XmlElement
    private Date createdate;

    /**
     * 授权方式  1：临时授权（128位）  2：永久授权（32位）
     */
    private String sqfs;

    private String ip;

    private String port;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    @XmlTransient
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @XmlTransient
    public String getCyqxh() {
        return cyqxh;
    }

    public void setCyqxh(String cyqxh) {
        this.cyqxh = cyqxh;
    }

    @XmlTransient
    public String getCyjgjc() {
        return cyjgjc;
    }

    public void setCyjgjc(String cyjgjc) {
        this.cyjgjc = cyjgjc;
    }

    @XmlTransient
    public String getSqm() {
        return sqm;
    }

    public void setSqm(String sqm) {
        this.sqm = sqm;
    }

    @XmlTransient
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @XmlTransient
    public String getOrgantype() {
        return organtype;
    }

    public void setOrgantype(String organtype) {
        this.organtype = organtype;
    }

    @XmlTransient
    public String getPorgan() {
        return porgan;
    }

    public void setPorgan(String porgan) {
        this.porgan = porgan;
    }

    @XmlTransient
    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    @XmlTransient
    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    @XmlTransient
    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    @XmlTransient
    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    @XmlTransient
    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getZdfwqdz() {
        return zdfwqdz;
    }

    public void setZdfwqdz(String zdfwqdz) {
        this.zdfwqdz = zdfwqdz;
    }

    public String getLxxzpz() {
        return lxxzpz;
    }

    public void setLxxzpz(String lxxzpz) {
        this.lxxzpz = lxxzpz;
    }

    public String getSqfs() {
        return sqfs;
    }

    public void setSqfs(String sqfs) {
        this.sqfs = sqfs;
    }
}
